package IMIC.NGUYENVANTINH.ARRAY.SIMPLE02;

public class Models {
	public double FindMax(double[] myarr) {
		double max =myarr[0];
		for (int i = 0; i < myarr.length; i++) {
			if(max<myarr[i]){
				max = myarr[i];
			}
		}
		return max;

	}
	public double FindMin(double[] myarr) {
		double min = myarr[0];
		for (int i = 0; i < myarr.length; i++) {
			if(min>myarr[i]){
				min = myarr[i];
			}
		}
		return min;

	}

}
